<?php
include ("conn.php");
$id = $_GET['id'];
//下面是读取数据
$sql = "SELECT type FROM pageList WHERE id = ".$id;
$result = $conn->query($sql);
$arr = array();
if ($result->num_rows > 0) {
    // 输出数据
    $row = $result->fetch_assoc();
    if((int)$row['type']==1)
    	exit('{"code":1}');
    else
    	exit('{"code":0}');
}
echo '{"code":0}';
?>